import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {ArticleManagementComponent} from './article-management/article-management.component';
import {ArticleTypeManagementComponent} from './article-type-management/article-type-management.component';
import {CommentManagementComponent} from './comment-management/comment-management.component';

const routes: Routes = [
  {
    path: '',
    children: [
      {path: '', redirectTo: 'article', pathMatch: 'full'},
      {path: 'article', component: ArticleManagementComponent},
      {path: 'articleType', component: ArticleTypeManagementComponent},
      {path: 'comment', component: CommentManagementComponent}
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class BlogManagementRoutingModule {
}
